package org.mspring.mlog.web.push;

import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Gao Youbo
 * @since 2013-4-23
 */
public class DefaultWriterAppender extends WriterAppender {

    private static final Logger log = LoggerFactory.getLogger(DefaultWriterAppender.class);

    public void write(String message) {
        try {
            writer.write(message);
        } catch (IOException e) {
            log.error(e.getMessage(), e);
        }
    }
}
